package com.xzbd.sunnn.repository;

import com.xzbd.sunnn.model.BaseDocument;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.io.Serializable;
import java.util.List;

/**
 * sun 2017-10-31.
 */
@NoRepositoryBean
public interface BaseRepository<M extends BaseDocument, ID extends Serializable> extends CrudRepository<M, ID>,JpaSpecificationExecutor<M> {
    M findOne(Specification<M> var1);
}
